-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ci] Script for building M1 wheels #19925
Conversation
This PR includes a script for building wheels for Macs with M1 processors. It roughly follows the pattern of the other scripts with a few differences. * Manually installs `nvm` * Uses miniforge conda to install python/pip instead of python foundation .pkgs * Doesn't pin numpy (we probably shouldn't be pinning it in the other scripts either...) * Commit detection falls back to `git` instead of erroring All of these changes were made so that the script works on a laptop, which comes with a subset of the dependencies that the x86 buildkite image comes with.
@gjoliver this script works on my laptop, it would be great to make sure that it works on at least one other machine (i.e. yours). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good! thanks.
python/build-wheel-macos-m1.sh
Outdated
@@ -84,7 +79,6 @@ for ((i=0; i<${#PY_VERSIONS[@]}; ++i)); do | |||
TRAVIS_COMMIT=$(git rev-parse HEAD) | |||
fi | |||
|
|||
echo $TRAVIS_COMMIT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not keep this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh i mean i guess we could, it was just an accidental debugging print statement i left in.
(note we are already printing echo "TRAVIS_COMMIT variable detected. ray.__commit__ will be set to $TRAVIS_COMMIT"
)
also, maybe we should rename the script to build-wheel-macos-arm64.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
leaving up to @wuisawesome to merge |
Why are these changes needed?
This PR includes a script for building wheels for Macs with M1 processors. It roughly follows the pattern of the other scripts with a few differences.
nvm
git
instead of erroringAll of these changes were made so that the script works on a laptop, which comes with a subset of the dependencies that the x86 buildkite image comes with.
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.